package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Word;
import com.ruoyi.system.mapper.WordMapper;
import com.ruoyi.system.service.IWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class WordServiceImpl implements IWordService {
    @Autowired
    private WordMapper wordMapper;

    @Override
    public List<Word> getWordsByCategoryId(Long categoryId) {
        return wordMapper.selectWordsByCategoryId(categoryId);
    }
}
